import { defineStore } from 'pinia'

export const useDrawerStore = defineStore('drawerStore',{
  state: ()=>({
    articleDrawer: false,
    articleRow: {
      id: 1,
      title: '',
      content: '',
      summary: '',
      thumbnail: '',
      categoryId: 1,
      userId: 1,
      viewCount: 0,
      likeCount: 0,
      commentCount: 0,
      favoriteCount: 0,
      status: 0,
      isTop: 0,
      isRecommend: 0,
      isOriginal: 0,
      sourceUrl: '',
      createTime: '',
      updateTime: ''
    },
    userDrawer: false,
    userRow: {
      id: '',
      username: '',
      nickname: '',
      gender: 0,
      avatar: '',
      email: '',
      phone: ''
    },
    tagDrawer: false,
    tagDialog: false,
    tagRow: {
      id: 1,
      name: '',
      createTime: '',
      updateTime: '',
      status: 0
    }
  }),
  actions: {

  }
})
